import { createApp } from 'vue'
//import './style.css'
import App from './App.vue'
import  ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//@ts-ignore
import 'virtual:svg-icons-register'
import SvgIcon from './components/SvgIcon/index.vue'
//@ts-ignore
import zbCn from 'element-plus/dist/locale/zh-cn.mjs'

import "@/styles/index.scss";
import gloablComponent from './components';
import router from './router'
import pinia from './store';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app =  createApp(App)
app.use(ElementPlus,{
    locale:zbCn
})
//el icon全局组件引入
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }

app.component('SvgIcon',SvgIcon)

app.use(pinia)
app.use(router)
app.use(gloablComponent);


app.mount('#app')
